package com.tarena.lbs.basic.web.repository.impl;

import com.tarena.lbs.basic.web.mapper.PictureMapper;
import com.tarena.lbs.basic.web.repository.PictureRepository;
import com.tarena.lbs.pojo.basic.dos.PictureDO;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;

@Repository
public class PictureRepositoryImpl implements PictureRepository {

    @Autowired
    private PictureMapper pictureMapper;
    @Override
    public int savePicture(List<PictureDO> pictureDOList) {
        return pictureMapper.savePicture(pictureDOList);
    }

    @Override
    public List<PictureDO> selectAll() {
        return pictureMapper.selectAll();
    }
}
